﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternDemoCApp.Structured.ProxyPattern
{
    public sealed class AgentPerson : AgentAbstract
    {
        //这是背后的老板，
        private FanStar boss;

        //老板在后面发号施令
        public AgentPerson()
        {
            boss = new FanStar();
        }

        //炒作的方法，执行具体的炒作---就是Proxy类型的Request方法
        public override void Speculation(string thing)
        {
            boss.Speculation(thing);
        }
    }
}
